﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace frm_view
{
    public partial class frmListProgram : Form
    {
        public frmListProgram()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
        public event EventHandler DangXuat;
        private void tileItem6_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            this.Close();
            DangXuat(this, new EventArgs());
        }

        private void btnMonHoc_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            frmListMonHoc frm = new frmListMonHoc();
            frm.Show();
            frm.ThoatForm += frm_ThoatForm;
            this.Hide();
            
        }

        void frm_ThoatForm(object sender, EventArgs e)
        {
            this.Show();
        }

        private void btnChuong_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            frmChuong frm = new frmChuong();
            frm.Show();
            this.Hide();
            frm.CloseChuong += frm_CloseChuong;
        }

        void frm_CloseChuong(object sender, EventArgs e)
        {
            this.Show();
        }

        private void btnBai_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            frmBai frm = new frmBai();
            frm.Show();
            this.Hide();
            frm.closeBai += frm_closeBai;
        }

        void frm_closeBai(object sender, EventArgs e)
        {
            this.Show();
        }

        private void btnMuc_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            frmMuc frm = new frmMuc();
            frm.Show();
            this.Hide();
            frm.CloseMuc += frm_CloseMuc;
        }

        void frm_CloseMuc(object sender, EventArgs e)
        {
            this.Show();
        }


    }
}
